// EnvironmentMetricsService.java
package com.example.smartgreenhouse.service;

import com.example.smartgreenhouse.dto.MetricResponse;
import com.example.smartgreenhouse.entity.EnvironmentCurrent;
import com.example.smartgreenhouse.exception.BusinessException;

public interface EnvironmentMetricsService {
    MetricResponse get24HourMetricData(String metric) throws BusinessException;
    MetricResponse get7DayMetricData(String metric) throws BusinessException;

    EnvironmentCurrent getByMetricType(String metricType);
    void upsertValue(EnvironmentCurrent entity);
}